import HTMLTestRunner_cn,logging

class Tools():
    def report(self):
        report = HTMLTestRunner_cn.HTMLTestRunner(open(file='A3mall.py'),
                                                  title='A3mall报告',
                                                  description='A3mall测试生成报告',
                                                  )
        return report

    def log(self):
        log = logging.basicConfig(time = '%Y%m%d:%H%M%S',
                                  filename='A3mall.log',
                                  filemode='a+',
                                  format='%(filename)s-%(levelname)s-%(esctime)s-%(message)s-%(lineno)d',
                                  )
        return log